﻿//  Copyright (c) Microsoft Corporation.  All Rights Reserved.
using System;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace Sripirom.ATS.Core.ServiceModel.Activation
{  
    public class AtsDescribingServiceHostFactory : ServiceHostFactory
    {
        protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
        {
            //BootStrapper.ConfigureDependencies();

            //LoggerFactory.CreateLog().LogInfo("CreateServiceHost: " + serviceType.Name);
         
            //All the custom factory does is return a new instance
            //of our custom host class. The bulk of the custom logic should
            //live in the custom host (as opposed to the factory) for maximum
            //reuse value.
            return new AtsDescribingServiceHost(serviceType, baseAddresses);
        }

     
    }
}
